/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package twitter;
import java.util.Date;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
/**
 *
 * @author ashwin
 */
@Entity
@Table(name = "tweetdetails")
public class TweetDetails implements Serializable {
 @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
 @Column(name="tweet")
 private String tweet;
 @Temporal(TemporalType.TIME)
@Column(name="usertime")
private Date userTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTweet() {
        return tweet;
    }

    public void setTweet(String tweet) {
        this.tweet = tweet;
    }

    public String getUserID() {
        return userID;
    }

    public void setUserID(String userID) {
        this.userID = userID;
    }

    public Date getUserTime() {
        return userTime;
    }

    public void setUserTime(Date userTime) {
        this.userTime = userTime;
    }
 @Column(name="userid")
 private String userID;


}
